<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>修改电影</title><!-- Favicons -->
  <link href="/static/assets/img/tubiao.png" rel="icon">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.min.css">
</head>

<body>
  <div class="container mt-5">
    <h2>Edit Movie</h2>
    <form method="POST" action="/edit_movie/{{ movie[0] }}">
      <div class="form-group">
        <label for="link">链接:</label>
        <input type="text" class="form-control" id="link" name="link" value="{{ movie[1] }}">
      </div>
      <div class="form-group">
        <label for="photo">海报链接:</label>
        <input type="text" class="form-control" id="photo" name="photo" value="{{ movie[2] }}">
      </div>
      <div class="form-group">
        <label for="cName">中文名:</label>
        <input type="text" class="form-control" id="cName" name="cName" value="{{ movie[3] }}">
      </div>
      <div class="form-group">
        <label for="introduce">介绍:</label>
        <input type="text" class="form-control" id="introduce" name="introduce" value="{{ movie[5] }}">
      </div>
      <div class="form-group">
        <label for="grade">评分:</label>
        <input type="number" class="form-control" id="grade" name="grade" min="0" max="10" step="0.1" value="{{ movie[6] }}">
      </div>
      <div class="form-group">
        <label for="evaluatorsNum">评价人数:</label>
        <input type="number" class="form-control" id="evaluatorsNum" name="evaluatorsNum" min="0" value="{{ movie[7] }}">
      </div>
      <div class="form-group">
        <label for="ink">ink:</label>
        <input type="text" class="form-control" id="ink" name="ink" value="{{ movie[8] }}">
      </div>
      <button type="submit" class="btn btn-primary">Save Changes</button>
    </form>
  </div>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>

</html>
